package com.glamour.hlcity.component.task.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.glamour.hlcity.common.model.CommandDO;
import com.glamour.hlcity.common.util.ListUtil;
import com.glamour.hlcity.common.util.RandomUtil;
import com.glamour.hlcity.component.framework.proxy.ProxyAware;
import com.glamour.hlcity.component.log.util.LogTracker;
import com.glamour.hlcity.component.task.common.CmdEnum;
import com.glamour.hlcity.component.task.common.TaskCode;
import com.glamour.hlcity.component.task.common.TaskException;
import com.glamour.hlcity.component.task.model.Command;
import com.glamour.hlcity.component.task.model.ResultModel;

/**
 * 测试用的
 */

public class JustForTestCmdExecute extends AbstractCmdExecute  {

	@Override
	public void act(String seqno) {
		try {
			Thread.sleep(100L);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
	}

	@Override
	public ResultModel search(String extSeqno) {
		
		return new ResultModel();
	}

	@Override
	public void callBack(String seqno, ResultModel result) {
		
		try {
			Thread.sleep(100L);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
	}

	@Override
	public String type() {
		return CmdEnum.GLAMOUR_HLCITY_JUST_FOR_TEST.getCode();
	}

	@Override
	public List<Command> createExecuteUnit() {
		return ListUtil.emptyList();
		//throw new UnsupportedOperationException("该类的实例不支持执行createExecuteUnit()");
	}


	


}
